package common;

import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EnvelopeMessage {
    private String module;
    private String action ;
    private JSONObject body ;


    public static EnvelopeMessage fromJson (String json){
        return JSONObject.parseObject(json,EnvelopeMessage.class);
    }

}
